<?php

require '../conn.php';

require 'config.php';

require '../inc/function.php';

$query=mysql_query('select * from '.$language.'_config where s_id=1');

$row=mysql_fetch_array($query);

$site_name=$row['s_name'];

$site_domain=$row['s_domain'];

$site_keyword=$row['s_keyword'];

$site_description=$row['s_description'];

$site_copyright=$row['s_copyright'];

$site_tel=$row['s_tel'];

$site_tdc=$row['s_tdc'];
$site_weibo=$row['s_weibo'];

$site_logo=$row['s_logo'];
  

$site_soc=$row['s_soc'];

$site_soc2=$row['s_soc2'];

$site_soc2_code=$row['s_soc2_code'];

$site_stat=$row['s_stat'];

$site_stat_code=$row['s_stat_code'];

$site_name2=$row['s_name'];

$site_names=$row['s_name'];

$site_keyword2=$row['s_keyword'];

$site_description2=$row['s_description'];

if ($id<=9){

	$query=mysql_query('select * from '.$language.'_keywords where k_id='.$id);

	$row=mysql_fetch_array($query);

	if ($row['k_name']!='') $site_name=$row['k_name'];

	if ($row['k_keyword']!='') $site_keyword=$row['k_keyword'];

	if ($row['k_description']!='') $site_description=$row['k_description'];

 
}



$language_path='';

	$language_paths='';
 
	$pn_str1='上一页: ';

	$pn_str2='下一页: ';

	$pn2_str1='上一页: ';

	$pn2_str2='下一页: ';

	$pn_str3='Volver';

	$pn_str4='';

$file_path='../'.$language_path;

switch($id){

case 1:
$ye="index";

	$file_name=$file_path.'index.html';

 
	$content=include('html_header.php');
	
	$content.='<!----------------banner star-----------------> 
        <div id="box_bannerc">
	    <div class="columnSpace" id="elem-FrontPublic_slideShow01-1432727821510" name="公用幻灯">
<div id="FrontPublic_slideShow01-1432727821510" class="FrontPublic_slideShow01-d5_c1"><div class="fullSlide">
	<div class="bd">
		<ul>';
     
	  $query=mysql_query('select * from '.$language.'_ad   order by a_order,a_id');
            
                if (mysql_num_rows($query)>0){
            
                while ($row=mysql_fetch_array($query)){
                
				$content.='<li style="background:url('.$row['a_image'].'); background-position: 50% 0px;">
			<a href="'.$row['a_url'].'" class="f_l"></a>
				</li>';
				 
                }
                    }
					
	   
	   
	   $content.='</ul>
	</div>
	<div class="hd"><ul></ul></div>
	<span class="prev"></span>
	<span class="next"></span>
</div>
	<script type="text/javascript">
$(".fullSlide").hover(function(){
    $(this).find(".prev,.next").stop(true, true).fadeTo("show", 0.5)
},
function(){
    $(this).find(".prev,.next").fadeOut()
});
$(".fullSlide").slide({
    titCell: ".hd ul",
    mainCell: ".bd ul",
    effect: "fold",
    autoPlay: true,
    autoPage: true,
    trigger: "click",
    startFun: function(i) {
        var curLi = jQuery(".fullSlide .bd li").eq(i);
        if ( !! curLi.attr("_src")) {
            curLi.css("background-image", curLi.attr("_src")).removeAttr("_src")
        }
    }
});
</script>   
</div></div>
	</div>
     <!-----------------banner end--------------->
           <!---------------内容 star-------------------> 
        <div id="box_mainc">

 	        <div id="box_mainc1">
		    <div id="box_mainc11"> 
				<div id="box_mainc1_c">
	<div class="columnSpace" id="elem-FrontSpecifies_show01-1431520334605" name="说明页">
	<div id="FrontSpecifies_show01-1431520334605" class="FrontSpecifies_show01-d1_c1">
	<ul>
	<li><a href="products.html"><img alt="" src="images/e5cb7a86-43e0-4409-804e-9fd5b6f2f224.png" /></a> <a href="products.html"><span>产品中心</span></a></li>
	<li>
		<a href="news.html"><img alt="" src="images/3df80413-60f9-4682-9c56-811e79ccecc1.png" /></a> <a href="news.html"><span>新闻中心</span></a></li>
	<li>
		<a href="anli.html"><img alt="" src="images/7a5e6435-b93f-4fb4-9234-73990f21f435.png" /></a> <a href="anli.html"><span>工程案例</span></a></li>
	</ul>
	</div>
	</div>
	</div>
				
 
		    </div> 
		</div> 
		<div id="box_mainc2">
			<div id="box_mainc22">
			<div id="box_mainc2_top"><img src="images/index02.png" /></div>
			<div id="box_mainc2_c">
			<div id="box_mainc2_c2">
		<div class="columnSpace" id="elem-FrontSpecifies_show01-1431573598387" name="说明页"><div id="FrontSpecifies_show01-1431573598387" class="FrontSpecifies_show01-d1_c1"><ul>
	<li>
	<a href="tech2.html"><img alt="" src="images/e60dda9f-ea9b-45ae-a506-be3b9d44b657.png" /></a><a href="tech2.html"><span>解决方案</span></a></li>
	<li>
		<a href="tech3.html"><img alt="" src="images/1868de5c-0bb5-462d-a458-c20e8e301797.png" /></a><a href="tech3.html"><span>研发中心</span></a></li>
	<li>
		<a href="tech4.html"><img alt="" src="images/f8025423-8d77-4f98-8b88-2d9699579f6c.png" /></a><a href="tech4.html"><span>公司实景</span></a></li>
	<li>
		<a href="tech5.html"><img alt="" src="images/7a3af284-ca97-4fa8-a9ac-7ca439bf15d9.png" /></a><a href="tech5.html"><span>荣誉资质</span></a></li>
	<li>
		<a href="tech6.html"><img alt="" src="images/258b4886-236d-4bb1-888a-743b58cc84ac.png" /></a><a href="tech6.html"><span>客户服务</span></a></li>
</ul></div></div>
		</div>
			</div>
			</div>
		</div>  

 

	</div>   

     <!-----------------内容 end----------------->
	 ';
 
 
	$content.=include('html_footer.php');
	
 	

	$file=fopen($file_name,"w+");

	if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

	fwrite($file,$content);

	fclose($file);

	

	echo '生成网站首页成功！';

	break;

case 2:

	$query=mysql_query('select * from '.$language.'_aboutus order by a_order,a_id');

	if (mysql_num_rows($query)==0){

		$file_name=$file_path.'aboutus.html';

		$content=include('html_header.php');	
 
		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);

	}

	else{
		$ye="aboutus";
 		while($row=mysql_fetch_array($query)){

 			$cid=$row['a_id'];
			 
			$file_name=$file_path.'aboutus-'.$row['a_id'].'.html';
			 
 
			$content=include('html_header.php');	

 $content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
           <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143152" name="说明页"> 
                    <div id="FrontSpecifies_show01-143152" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=1').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc2_top"> 
              <div class="columnSpace" id="elem-FrontComContent_list01-142724711111" name="通用内容列表"> 
                <div id="FrontComContent_list01-142724711111" class="FrontComContent_list01-d1_c1"><div class="menu-first">
			 
						<ul class="list2">';
							
							
$html_query=mysql_query('select * from '.$language.'_aboutus order by a_order,a_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){
	if($html_row['a_id']==$cid)
	{
		 $content.='<li class="menu-none"><a href="aboutus-'.$html_row['a_id'].'.html" class="menu-text1 current" >'.$html_row['a_name'].'</a></li>';

		}
	else
	{
  $content.='<li class="menu-none"><a href="aboutus-'.$html_row['a_id'].'.html" class="menu-text1" >'.$html_row['a_name'].'</a></li>';
	}
	}
}
	 
 $content.='</ul>
						
						</div>
	</div> 
              </div> 
            </div>  
            <div id="box_ny_mainc2_c"> 
              <div class="columnSpace" id="elem-FrontComContent_detail01-1427247690111" name="通用内容详细信息"> 
                <div id="FrontComContent_detail01-1427247690111" class="FrontComContent_detail01-d1_c1"><div class="title">
   	<h3>'.$row['a_name'].'</h3>
	</div>
  <div class="content">
  	<div class="describe htmledit">
  		<div class="FrontComContent_detail01-1427247690111_htmlbreak" id="FrontComContent_detail01-1427247690111_cont_1"
				style="display: block;">
				'.$row['a_content'].'
				</div>
		</div>
  </div>
  </div> 
              </div> 
            </div> 
          </div>  
          
        </div>  
        <!-----------------内容 end----------------->';

			$content.=include('html_footer.php');

			$file=fopen($file_name,"w+");

			if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

			fwrite($file,$content);

			fclose($file);
			 

		}

			 
	mysql_data_seek($query,0);

		$row=mysql_fetch_array($query);

		$site_name=$site_name;

		$site_keyword=$site_keyword;

		$site_description=$site_description;

		if ($site_name=='') $site_name=$row['a_name'];

		if ($site_keyword=='') $site_keyword=$row['a_name'];

		if ($site_description=='') $site_description=$row['a_name'];

		if ($row['k_name']!='') $site_name=$row['k_name'];

		if ($row['k_keyWord']!='') $site_keyword=$row['k_keyWord'];

		if ($row['k_description']!='') $site_description=$row['k_description'];

 
		$cid=$row['a_id'];

		$file_name=$file_path.'aboutus.html';

		$content=include('html_header.php');
 
$content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
           <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143152" name="说明页"> 
                    <div id="FrontSpecifies_show01-143152" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=1').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc2_top"> 
              <div class="columnSpace" id="elem-FrontComContent_list01-142724711111" name="通用内容列表"> 
                <div id="FrontComContent_list01-142724711111" class="FrontComContent_list01-d1_c1"><div class="menu-first">
			 
						<ul class="list2">';
							
							
$html_query=mysql_query('select * from '.$language.'_aboutus order by a_order,a_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

if($html_row['a_id']==$cid)
	{
		 $content.='<li class="menu-none"><a href="aboutus-'.$html_row['a_id'].'.html" class="menu-text1 current" >'.$html_row['a_name'].'</a></li>';

		}
	else
	{
  $content.='<li class="menu-none"><a href="aboutus-'.$html_row['a_id'].'.html" class="menu-text1" >'.$html_row['a_name'].'</a></li>';
	}
	 
	}
}
	 
 $content.='</ul>
						</div>
	</div> 
              </div> 
            </div>  
            <div id="box_ny_mainc2_c"> 
              <div class="columnSpace" id="elem-FrontComContent_detail01-1427247690111" name="通用内容详细信息"> 
                <div id="FrontComContent_detail01-1427247690111" class="FrontComContent_detail01-d1_c1"><div class="title">
   	<h3>'.$row['a_name'].'</h3>
	</div>
  <div class="content">
  	<div class="describe htmledit">
  		<div class="FrontComContent_detail01-1427247690111_htmlbreak" id="FrontComContent_detail01-1427247690111_cont_1"
				style="display: block;">
				'.$row['a_content'].'
				</div>
		</div>
  </div>
  </div> 
              </div> 
            </div> 
          </div>  
          
        </div>  
        <!-----------------内容 end----------------->';

		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);
	}

	

	echo '生成关于我们成功！';

	break;

case 3:




$ye="products";
	$page_size=1;

	$query=mysql_query('select * from '.$language.'_products_class order by p_order,p_id');

	if (mysql_num_rows($query)==0){

		$file_name=$file_path.'products.html';

		$content=include('html_header.php');
 

			$content.='';

		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);

	}

	else {

		while($row=mysql_fetch_array($query)){
			
			 

			$page_sql='select p_id,p_class,p_name,p_date from '.$language.'_products where p_class='.$row['p_id'].'    order by p_date desc,p_id desc';

			$page_count=GetPageCount($page_size,$page_sql);

			for ($i=1;$i<=$page_count;$i++){

				$cid=$row['p_id'];

				$file_name=$file_path.'products-c'.$row['p_id'].'-p'.$i.'.html';

				$content=include('html_header.php');
 

$content.='<div id="box_ny_mainc"> 
           
          <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143155" name="说明页"> 
                    <div id="FrontSpecifies_show01-143155" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=2').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc22"> 
              <div id="box_ny_mainc2_left"> 
          <script language="javascript" type="text/javascript">
   $(document).ready(function(){
  $("#elem-FrontProductsCategory_show01-1427285007516 li:not(:contains(\'li\')):contains(\'"+$("#elem-FrontPublic_breadCrumb01-1427246658 a:last").text()+"\') a").addClass("current");
   })
  </script>     
                <div class="columnSpace" id="elem-FrontProductsCategory_show01-1427285007516" name="商品分类"> 
                  <script type="text/javascript">
jQuery(document).ready(function() {
	jQuery("div.FrontProductsCategory_show01-d5_c1 ul li span.node-open-close").each(function() {
		var children = jQuery(this).parent("li").children("ul");
		if(children.length == 0){
			jQuery(this).addClass("menu-none");
			jQuery(this).removeClass("menu-open");
			jQuery(this).removeClass("menu-close");
		}else{
			if(jQuery(children).is(":visible")){
				jQuery(this).addClass("menu-open");
				jQuery(this).removeClass("menu-none");
				jQuery(this).removeClass("menu-close");
			}else{
				jQuery(this).addClass("menu-close");
				jQuery(this).removeClass("menu-open");
				jQuery(this).removeClass("menu-none");
			}
		}
	});
	jQuery("div.FrontProductsCategory_show01-d5_c1 ul li > span.node-open-close").click(function() {
		var children = jQuery(this).parent("li").children("ul");
		if(children.length == 1){
			if(jQuery(children).is(":visible")){
				jQuery(children).hide();
				jQuery(this).addClass("menu-close");
				jQuery(this).removeClass("menu-open");
			}else{
				jQuery(children).show();
				jQuery(this).addClass("menu-open");
				jQuery(this).removeClass("menu-close");
			}
		}
	});
	var pmcId = "";
	var currentLi = jQuery("#FrontProductsCategory_show01-1427285007516"+pmcId);
	currentLi.children("a").addClass("current");
	currentLi.children("em").addClass("current");
	currentLi.parents("ul.categorys").show();
});
 
</script>
<!-- 装饰器样式开始 -->
<div class="border_03">
  <div class="border_03-topr">
    <div class="border_03-topl">
    </div>
  </div>
  <div class="border_03-mid">
      <div class="borderContent"><div id="FrontProductsCategory_show01-1427285007516" class="FrontProductsCategory_show01-d5_c1"><div class="comptitle_03"><strong class="titlestyle_03">所有产品类别</strong></div>
	  <ul class="categorys">';
	
	$html_query=mysql_query('select * from '.$language.'_products_class where p_sid=0 order by p_order,p_id');
 if (mysql_num_rows($html_query)>0){
 while($html_row=mysql_fetch_array($html_query)){

	$content.='<li class="menu-text1">
		<span class="node-open-close menu-close">&nbsp;<a href="products-c'.$html_row['p_id'].'-p1.html" >'.$html_row['p_name'].'</a></span>
		
		';
	
	$html_query2=mysql_query('select * from '.$language.'_products_class where p_sid='.$html_row['p_id'].' order by p_order,p_id');
 if (mysql_num_rows($html_query2)>0){
		 $content.='<ul class="categorys">';
 
 while($html_row2=mysql_fetch_array($html_query2)){
	 
					
			$content.='<li  class="menu-text2">
						<span class="node-open-close menu-close">&nbsp;<a href="products-c'.$html_row2['p_id'].'-p1.html" >'.$html_row2['p_name'].'</a></span>

							';
							
								$html_query3=mysql_query('select * from '.$language.'_products_class  where p_sid='.$html_row2['p_id'].' order by p_order,p_id');
				 if (mysql_num_rows($html_query3)>0){
									 $content.='<ul class="categorys">';
				 
									 while($html_row3=mysql_fetch_array($html_query3)){
 				
											$content.='<li class="menu-text3">
											<span class="node-open-close menu-none">&nbsp;<a href="products-c'.$html_row3['p_id'].'-p1.html" >'.$html_row3['p_name'].'</a></span>
											</li>';
											 }
									$content.='</ul>';
				
				 }

		$content.='</li>';
					
	 
 }
$content.='</ul>';

 }
		
			
$content.='</li>';
		
		
			}
 

}

$content.='</ul></div>
	  <div class="clearBoth"></div></div>
  </div>
  <div class="border_03-footerr">
    <div class="border_03-footerl"></div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div>  
              <div id="box_ny_mainc2_right"> 
                <div class="columnSpace" id="elem-FrontProducts_list01-1427285060071" name="商品列表"> 
                  <!-- 装饰器样式开始 -->
<div class="border_00">
     <div class="border_00-topr">
    <div class="border_00-topl">
    </div>
  </div>
  <div class="border_00-mid">
      <div class="borderContent"><div id="FrontProducts_list01-1427285060071" class="FrontProducts_list01-d3_c1_01"><div class="comptitle_00"><strong class="titlestyle_00">'.Rsfield('select p_name from cn_products_class where p_id='.$row['p_id'].'').'</strong></div> 
		<div class="type">
			<span class="sort">
				</span>
		</div>
		<ul	class="mainul productlist-02">';
			
		$page=1;

		$page_number=($page-1)*$page_size;
		
			

		$page_sql='select p_id,p_class,p_name,p_date,p_image from '.$language.'_products where p_class='.$row['p_id'].'  order by p_date desc,p_id desc';

		$page_count=GetPageCount($page_size,$page_sql);

		$query2=mysql_query($page_sql." limit $page_number,$page_size");

		if (mysql_num_rows($query2)==0){

			$content.=NoDatas($language);

		}

		else{

 
			while($row2=mysql_fetch_array($query2)){

	$content.='
			<li class="content column-num3">
					<div class="pic-module">
						<div class="pic">
									<a href="products-'.$row2['p_id'].'.html"><img src= "'.$row2['p_image'].'" style="width:200px; height:160px;"  /></a>
								</div>
							</div>
					<div class="pro-module">
						<ul class="basic">
							<li class="code">
									<h1>
										<span>产品名称：</span>
										<strong>
											<a href="products-'.$row2['p_id'].'.html">'.$row2['p_name'].'</a>
										</strong>
									</h1>
									</li>
								</ul>
						<p class="buttonP">
							</p>
					</div>
				</li>';
			}
		}
		
 
				
				   
				$content.='<li class="clearBoth"></li>
				</ul>
		<div class="skip-pages">
					<div class="bottom">
						<div class="pageJump"><div class="number">'.ShowPages('products-c'.$row['p_id'].'-p',$page,$page_count).'</div> </div>
</div>
				</div>
			 
</div>
	  <div class="clearBoth"></div>
	  </div>
  </div>
</div>
<!-- 装饰器样式结束 -->
 
                </div> 
              </div> 
            </div> 
          </div>  
         
        </div>  
        <!-----------------内容 end----------------->';
				$content.=include('html_footer.php');

				$file=fopen($file_name,"w+");

				if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

				fwrite($file,$content);

				fclose($file);

			}

		}

		mysql_data_seek($query,0);

		$row=mysql_fetch_array($query);

		$cid=$row['p_id'];

		$file_name=$file_path.'products.html';

		$content=include('html_header.php');

		
$content.='<div id="box_ny_mainc"> 
           
          <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143155" name="说明页"> 
                    <div id="FrontSpecifies_show01-143155" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=2').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc22"> 
              <div id="box_ny_mainc2_left"> 
          <script language="javascript" type="text/javascript">
   $(document).ready(function(){
  $("#elem-FrontProductsCategory_show01-1427285007516 li:not(:contains(\'li\')):contains(\'"+$("#elem-FrontPublic_breadCrumb01-1427246658 a:last").text()+"\') a").addClass("current");
   })
  </script>     
                <div class="columnSpace" id="elem-FrontProductsCategory_show01-1427285007516" name="商品分类"> 
                  <script type="text/javascript">
jQuery(document).ready(function() {
	jQuery("div.FrontProductsCategory_show01-d5_c1 ul li span.node-open-close").each(function() {
		var children = jQuery(this).parent("li").children("ul");
		if(children.length == 0){
			jQuery(this).addClass("menu-none");
			jQuery(this).removeClass("menu-open");
			jQuery(this).removeClass("menu-close");
		}else{
			if(jQuery(children).is(":visible")){
				jQuery(this).addClass("menu-open");
				jQuery(this).removeClass("menu-none");
				jQuery(this).removeClass("menu-close");
			}else{
				jQuery(this).addClass("menu-close");
				jQuery(this).removeClass("menu-open");
				jQuery(this).removeClass("menu-none");
			}
		}
	});
	jQuery("div.FrontProductsCategory_show01-d5_c1 ul li > span.node-open-close").click(function() {
		var children = jQuery(this).parent("li").children("ul");
		if(children.length == 1){
			if(jQuery(children).is(":visible")){
				jQuery(children).hide();
				jQuery(this).addClass("menu-close");
				jQuery(this).removeClass("menu-open");
			}else{
				jQuery(children).show();
				jQuery(this).addClass("menu-open");
				jQuery(this).removeClass("menu-close");
			}
		}
	});
	var pmcId = "";
	var currentLi = jQuery("#FrontProductsCategory_show01-1427285007516"+pmcId);
	currentLi.children("a").addClass("current");
	currentLi.children("em").addClass("current");
	currentLi.parents("ul.categorys").show();
});
 
</script>
<!-- 装饰器样式开始 -->
<div class="border_03">
  <div class="border_03-topr">
    <div class="border_03-topl">
    </div>
  </div>
  <div class="border_03-mid">
      <div class="borderContent"><div id="FrontProductsCategory_show01-1427285007516" class="FrontProductsCategory_show01-d5_c1"><div class="comptitle_03"><strong class="titlestyle_03">所有产品类别</strong></div>
	  <ul class="categorys">';
	
	$html_query=mysql_query('select * from '.$language.'_products_class where p_sid=0 order by p_order,p_id');
 if (mysql_num_rows($html_query)>0){
 while($html_row=mysql_fetch_array($html_query)){

	$content.='<li class="menu-text1">
		<span class="node-open-close menu-close">&nbsp;<a href="products-c'.$html_row['p_id'].'-p1.html" >'.$html_row['p_name'].'</a></span>
		
		';
	
	$html_query2=mysql_query('select * from '.$language.'_products_class where p_sid='.$html_row['p_id'].' order by p_order,p_id');
 if (mysql_num_rows($html_query2)>0){
		 $content.='<ul class="categorys">';
 
 while($html_row2=mysql_fetch_array($html_query2)){
	 
					
			$content.='<li  class="menu-text2">
						<span class="node-open-close menu-close">&nbsp;<a href="products-c'.$html_row2['p_id'].'-p1.html" >'.$html_row2['p_name'].'</a></span>

							';
							
								$html_query3=mysql_query('select * from '.$language.'_products_class  where p_sid='.$html_row2['p_id'].' order by p_order,p_id');
				 if (mysql_num_rows($html_query3)>0){
									 $content.='<ul class="categorys">';
				 
									 while($html_row3=mysql_fetch_array($html_query3)){
 				
											$content.='<li class="menu-text3">
											<span class="node-open-close menu-none">&nbsp;<a href="products-c'.$html_row3['p_id'].'-p1.html" >'.$html_row3['p_name'].'</a></span>
											</li>';
											 }
									$content.='</ul>';
				
				 }

		$content.='</li>';
					
	 
 }
$content.='</ul>';

 }
		
			
$content.='</li>';
		
		
			}
 

}

$content.='</ul></div>
	  <div class="clearBoth"></div></div>
  </div>
  <div class="border_03-footerr">
    <div class="border_03-footerl"></div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div>  
              <div id="box_ny_mainc2_right"> 
                <div class="columnSpace" id="elem-FrontProducts_list01-1427285060071" name="商品列表"> 
                  <!-- 装饰器样式开始 -->
<div class="border_00">
     <div class="border_00-topr">
    <div class="border_00-topl">
    </div>
  </div>
  <div class="border_00-mid">
      <div class="borderContent"><div id="FrontProducts_list01-1427285060071" class="FrontProducts_list01-d3_c1_01"><div class="comptitle_00"><strong class="titlestyle_00">产品中心</strong></div> 
		<div class="type">
			<span class="sort">
				</span>
		</div>
		<ul	class="mainul productlist-02">
			<li class="content column-num3">
					<div class="pic-module">
						<div class="pic">
									<a href="/products_detail/&amp;productId=38.html"
										title="FDL-TH4D12*3W" target="_self">
										<img src= "/imageRepository/4441c35d-626d-4bcb-b10d-b63022f942b0.jpg" id= "FrontProducts_list01-1427285060071_38" alt= "" title= "FDL-TH4D12*3W"  /></a>
								</div>
							</div>
					<div class="pro-module">
						<ul class="basic">
							<li class="code">
									<h1>
										<span>产品名称：</span>
										<strong>
											<a href="/products_detail/&amp;productId=38.html"
												title="FDL-TH4D12*3W"
												target="_self"
												
												>
												FDL-TH4D12*3W</a>
										</strong>
									</h1>
									</li>
								</ul>
						<p class="buttonP">
							</p>
					</div>
				</li>
				<li class="content column-num3">
					<div class="pic-module">
						<div class="pic">
									<a href="/products_detail/&amp;productId=39.html"
										title="TH4E-12*3W" target="_self">
										<img src= "/imageRepository/b4308457-9ba2-4f29-9920-a44e78bb42df.jpg" id= "FrontProducts_list01-1427285060071_39" alt= "" title= "TH4E-12*3W"  /></a>
								</div>
							</div>
					<div class="pro-module">
						<ul class="basic">
							<li class="code">
									<h1>
										<span>产品名称：</span>
										<strong>
											<a href="/products_detail/&amp;productId=39.html"
												title="TH4E-12*3W"
												target="_self"
												
												>
												TH4E-12*3W</a>
										</strong>
									</h1>
									</li>
								</ul>
						<p class="buttonP">
							</p>
					</div>
				</li>
				<li class="content column-num3">
					<div class="pic-module">
						<div class="pic">
									<a href="/products_detail/&amp;productId=36.html"
										title="TH4B-16*2W" target="_self">
										<img src= "/imageRepository/4dfa1db3-1c6f-407b-b9d1-2e3d74380206.jpg" id= "FrontProducts_list01-1427285060071_36" alt= "" title= "TH4B-16*2W"  /></a>
								</div>
							</div>
					<div class="pro-module">
						<ul class="basic">
							<li class="code">
									<h1>
										<span>产品名称：</span>
										<strong>
											<a href="/products_detail/&amp;productId=36.html"
												title="TH4B-16*2W"
												target="_self"
												
												>
												TH4B-16*2W</a>
										</strong>
									</h1>
									</li>
								</ul>
						<p class="buttonP">
							</p>
					</div>
				</li>
				<li class="clearBoth"></li>
				<li class="content column-num3">
					<div class="pic-module">
						<div class="pic">
									<a href="/products_detail/&amp;productId=35.html"
										title="TH4A-15*3W" target="_self">
										<img src= "/imageRepository/8db2116b-92fc-4fc1-8204-dc3f756aa71f.jpg" id= "FrontProducts_list01-1427285060071_35" alt= "" title= "TH4A-15*3W"  /></a>
								</div>
							</div>
					<div class="pro-module">
						<ul class="basic">
							<li class="code">
									<h1>
										<span>产品名称：</span>
										<strong>
											<a href="/products_detail/&amp;productId=35.html"
												title="TH4A-15*3W"
												target="_self"
												
												>
												TH4A-15*3W</a>
										</strong>
									</h1>
									</li>
								</ul>
						<p class="buttonP">
							</p>
					</div>
				</li>
				<li class="content column-num3">
					<div class="pic-module">
						<div class="pic">
									<a href="/products_detail/&amp;productId=37.html"
										title="TH4B-18*2W" target="_self">
										<img src= "/imageRepository/00e81a8d-0ed9-4d5d-9415-a5839a133ebe.jpg" id= "FrontProducts_list01-1427285060071_37" alt= "" title= "TH4B-18*2W"  /></a>
								</div>
							</div>
					<div class="pro-module">
						<ul class="basic">
							<li class="code">
									<h1>
										<span>产品名称：</span>
										<strong>
											<a href="/products_detail/&amp;productId=37.html"
												title="TH4B-18*2W"
												target="_self"
												
												>
												TH4B-18*2W</a>
										</strong>
									</h1>
									</li>
								</ul>
						<p class="buttonP">
							</p>
					</div>
				</li>
				<li class="content column-num3">
					<div class="pic-module">
						<div class="pic">
									<a href="/products_detail/&amp;productId=111.html"
										title="FDL-TH6智能天花灯" target="_self">
										<img src= "/imageRepository/1007dc0e-9352-4901-9d0d-e248ee36d8fd.jpg" id= "FrontProducts_list01-1427285060071_111" alt= "" title= "FDL-TH6智能天花灯"  /></a>
								</div>
							</div>
					<div class="pro-module">
						<ul class="basic">
							<li class="code">
									<h1>
										<span>产品名称：</span>
										<strong>
											<a href="/products_detail/&amp;productId=111.html"
												title="FDL-TH6智能天花灯"
												target="_self"
												
												>
												FDL-TH6智能天花灯</a>
										</strong>
									</h1>
									</li>
								</ul>
						<p class="buttonP">
							</p>
					</div>
				</li>
				<li class="clearBoth"></li>
				<li class="content column-num3">
					<div class="pic-module">
						<div class="pic">
									<a href="/products_detail/&amp;productId=113.html"
										title="FDL-TH4F 24X1" target="_self">
										<img src= "/imageRepository/b1683274-3af1-4572-9e5f-fa15573788d8.jpg" id= "FrontProducts_list01-1427285060071_113" alt= "" title= "FDL-TH4F 24X1"  /></a>
								</div>
							</div>
					<div class="pro-module">
						<ul class="basic">
							<li class="code">
									<h1>
										<span>产品名称：</span>
										<strong>
											<a href="/products_detail/&amp;productId=113.html"
												title="FDL-TH4F 24X1"
												target="_self"
												
												>
												FDL-TH4F 24X1</a>
										</strong>
									</h1>
									</li>
								</ul>
						<p class="buttonP">
							</p>
					</div>
				</li>
				<li class="content column-num3">
					<div class="pic-module">
						<div class="pic">
									<a href="/products_detail/&amp;productId=114.html"
										title="FDL-TH4F 30X1" target="_self">
										<img src= "/imageRepository/9c77fb50-c234-433e-a31b-4836406f8dc6.jpg" id= "FrontProducts_list01-1427285060071_114" alt= "" title= "FDL-TH4F 30X1"  /></a>
								</div>
							</div>
					<div class="pro-module">
						<ul class="basic">
							<li class="code">
									<h1>
										<span>产品名称：</span>
										<strong>
											<a href="/products_detail/&amp;productId=114.html"
												title="FDL-TH4F 30X1"
												target="_self"
												
												>
												FDL-TH4F 30X1</a>
										</strong>
									</h1>
									</li>
								</ul>
						<p class="buttonP">
							</p>
					</div>
				</li>
				<li class="content column-num3">
					<div class="pic-module">
						<div class="pic">
									<a href="/products_detail/&amp;productId=115.html"
										title="FDL-TH4F 36X1" target="_self">
										<img src= "/imageRepository/7e145b59-90ea-45ee-87f3-05b8db4a4bff.jpg" id= "FrontProducts_list01-1427285060071_115" alt= "" title= "FDL-TH4F 36X1"  /></a>
								</div>
							</div>
					<div class="pro-module">
						<ul class="basic">
							<li class="code">
									<h1>
										<span>产品名称：</span>
										<strong>
											<a href="/products_detail/&amp;productId=115.html"
												title="FDL-TH4F 36X1"
												target="_self"
												
												>
												FDL-TH4F 36X1</a>
										</strong>
									</h1>
									</li>
								</ul>
						<p class="buttonP">
							</p>
					</div>
				</li>
				<li class="clearBoth"></li>
				</ul>
		<div class="skip-pages">
					<div class="bottom">
						<div class="pageJump"><div class="number"><span class="disabled">首页</span><span class="disabled">上一页</span><span class="current">1</span><span class="disabled">下一页</span><span class="disabled">末页</span></div> </div>
</div>
				</div>
			 
</div>
	  <div class="clearBoth"></div>
	  </div>
  </div>
</div>
<!-- 装饰器样式结束 -->
 
                </div> 
              </div> 
            </div> 
          </div>  
         
        </div>  
        <!-----------------内容 end----------------->';
 
		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);



	}



	$query=mysql_query('select * from '.$language.'_products');

	if (mysql_num_rows($query)>0){

	while($row=mysql_fetch_array($query)){

		$site_name=$row['p_name'].' - '.$site_names;

		$site_keyword=$site_keyword2;

		$site_description=$site_description2;

		if ($site_keyword=='') $site_keyword=$row['p_name'].' - '.$site_names;

		if ($site_description=='') $site_description=$row['p_name'].' - '.$site_names;

		if ($row['k_name']!='') $site_name=$row['k_name'];

		if ($row['k_keyWord']!='') $site_keyword=$row['k_keyWord'];

		if ($row['k_description']!='') $site_description=$row['k_description'];

		$class_name=RsField('select p_name from '.$language.'_products_class where p_id='.$row['p_class']);

		$file_name=$file_path.'products-'.$row['p_id'].'.html';

		$content=include('html_header.php');

		
		$content.='';

		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);

	}

	}



	echo '生成产品展示成功！';

	break;

case 4:


	$page_size=1;

	$query=mysql_query('select * from '.$language.'_news_class order by n_order,n_id');

	if (mysql_num_rows($query)==0){

		$file_name=$file_path.'news.html';

		$content=include('html_header.php');

 

		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);

	}

	else {

		while($row=mysql_fetch_array($query)){

			$page_sql='select n_id,n_class,n_image,n_title,n_date,k_description from '.$language.'_news where n_class='.$row['n_id'].' order by n_date desc,n_id desc';

			$page_count=GetPageCount($page_size,$page_sql);

			for ($i=1;$i<=$page_count;$i++){

				$cid=$row['n_id'];

				$file_name=$file_path.'news-c'.$row['n_id'].'-p'.$i.'.html';

				$content=include('html_header.php');


$content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
          
          <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143153" name="说明页"> 
                    <div id="FrontSpecifies_show01-143153" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=3').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc22"> 
              <div id="box_ny_mainc2_left"> 
                <div class="columnSpace" id="elem-FrontNewsCategory_tree01-1431652179455" name="资讯分类"> 
                  
<!-- 装饰器样式开始 -->
<div class="border_03">
  <div class="border_03-topr">
    <div class="border_03-topl">
    </div>
  </div>
  <div class="border_03-mid">
      <div class="borderContent"><div id="FrontNewsCategory_tree01-1431652179455" class="FrontNewsCategory_tree01-d2_c1"><div class="comptitle_03"><strong class="titlestyle_03">新闻中心</strong></div><div class="menu-first">
    <ul>';
     
	$html_query=mysql_query('select * from '.$language.'_news_class order by n_order,n_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

	$content.=' <li class="menu-none"><a href="news-c'.$html_row['n_id'].'-p1.html" target="_self" class="menu-text1">'.$html_row['n_name'].'</a></li>';

	}
 

} 
 $content.='</ul>
  </div>
</div>
	  <div class="clearBoth"></div></div>
  </div>
  <div class="border_03-footerr">
    <div class="border_03-footerl"></div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div>  
              <div id="box_ny_mainc2_right"> 
                <div class="columnSpace" id="elem-FrontNews_list01-1431652220070" name="资讯列表"> 
                  
<!-- 装饰器样式开始 -->
<div class="border_00">
     <div class="border_00-topr">
    <div class="border_00-topl">
    </div>
  </div>
  <div class="border_00-mid">
     <div class="borderContent"><div id="FrontNews_list01-1431652220070" class="FrontNews_list01-d2_c2"><div class="comptitle_00"><strong class="titlestyle_00">'.$row['n_name'].'</strong></div>
	  
 	 ';
 

				$page=$i;

				$page_number=($page-1)*$page_size;

				$query2=mysql_query($page_sql." limit $page_number,$page_size");

				if (mysql_num_rows($query2)==0){

					$content.=NoDatas($language);

				}

				else{

					$content.='<ul class="comstyle newslist-01">';

					while($row2=mysql_fetch_array($query2)){

						$content.='<li class="content column-num1">
 	<div class="pic">
					<a href="news-'.$row2['n_id'].'.html"  target="_self">
                                <img src= "'.$row2['n_image'].'" /></a>
				</div>
			<div class="main">
				<div class="newstitle">
					<ul>
						<li class="title">
							<h3>
							<a href="news-'.$row2['n_id'].'.html"  target="_self">'.$row2['n_title'].'</a>
										</h3>
						</li>
						</ul>
				</div>
				<div class="newslist">
					<ul>
						<li class="summary">
							<h3>概要：</h3>
							<p>'.$row2['k_description'].'</p>
						</li>
						</ul>
				</div>
				</div>
		</li>';

					}

$content.='</ul>';
					
	if ($page_count>1) $content.='<div class="pageJump"><div class="pageJump"><div class="number">'.ShowPages('news-c'.$row['n_id'].'-p',$page,$page_count,$language).'</div></div></div>';

				}
 
$content.='</div>
	  <div class="clearBoth"></div>
	  </div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div> 
            </div> 
          </div>  
          
        </div>  
        <!-----------------内容 end----------------->';
	 
				$content.=include('html_footer.php');

				$file=fopen($file_name,"w+");

				if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

				fwrite($file,$content);

				fclose($file);

			}

		}

		mysql_data_seek($query,0);

		$row=mysql_fetch_array($query);

		$cid=$row['n_id'];

		$file_name=$file_path.'news.html';

		$content=include('html_header.php');

		
		
$content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
          
          <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143153" name="说明页"> 
                    <div id="FrontSpecifies_show01-143153" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=3').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc22"> 
              <div id="box_ny_mainc2_left"> 
                <div class="columnSpace" id="elem-FrontNewsCategory_tree01-1431652179455" name="资讯分类"> 
                  
<!-- 装饰器样式开始 -->
<div class="border_03">
  <div class="border_03-topr">
    <div class="border_03-topl">
    </div>
  </div>
  <div class="border_03-mid">
      <div class="borderContent"><div id="FrontNewsCategory_tree01-1431652179455" class="FrontNewsCategory_tree01-d2_c1"><div class="comptitle_03"><strong class="titlestyle_03">新闻中心</strong></div><div class="menu-first">
    <ul>';
     
	$html_query=mysql_query('select * from '.$language.'_news_class order by n_order,n_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

	$content.=' <li class="menu-none"><a href="news-c'.$html_row['n_id'].'-p1.html" target="_self" class="menu-text1">'.$html_row['n_name'].'</a></li>';

	}
 

} 
 $content.='</ul>
  </div>
</div>
	  <div class="clearBoth"></div></div>
  </div>
  <div class="border_03-footerr">
    <div class="border_03-footerl"></div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div>  
              <div id="box_ny_mainc2_right"> 
                <div class="columnSpace" id="elem-FrontNews_list01-1431652220070" name="资讯列表"> 
                  
<!-- 装饰器样式开始 -->
<div class="border_00">
     <div class="border_00-topr">
    <div class="border_00-topl">
    </div>
  </div>
  <div class="border_00-mid">
     <div class="borderContent"><div id="FrontNews_list01-1431652220070" class="FrontNews_list01-d2_c2"><div class="comptitle_00"><strong class="titlestyle_00">'.$row['n_name'].'</strong></div>
	  
 	 ';
 
 $page=1;

		$page_number=($page-1)*$page_size;

		$page_sql='select n_id,n_class,n_image,n_title,n_date,k_description from '.$language.'_news where n_class='.$row['n_id'].' order by n_date desc,n_id desc';

		$page_count=GetPageCount($page_size,$page_sql);

		$query2=mysql_query($page_sql." limit $page_number,$page_size");

		if (mysql_num_rows($query2)==0){

			$content.=NoDatas($language);

		}

		else{

					$content.='<ul class="comstyle newslist-01">';

					while($row2=mysql_fetch_array($query2)){

						$content.='<li class="content column-num1">
 	<div class="pic">
					<a href="news-'.$row2['n_id'].'.html"  target="_self">
                                <img src= "'.$row2['n_image'].'" /></a>
				</div>
			<div class="main">
				<div class="newstitle">
					<ul>
						<li class="title">
							<h3>
							<a href="news-'.$row2['n_id'].'.html"  target="_self">'.$row2['n_title'].'</a>
										</h3>
						</li>
						</ul>
				</div>
				<div class="newslist">
					<ul>
						<li class="summary">
							<h3>概要：</h3>
							<p>'.$row2['k_description'].'</p>
						</li>
						</ul>
				</div>
				</div>

		</li>';

					}

$content.='</ul>';
					
	if ($page_count>1) $content.='<div class="pageJump"><div class="pageJump"><div class="number">'.ShowPages('news-c'.$row['n_id'].'-p',$page,$page_count,$language).'</div></div></div>';

				}
 
 
$content.='</div>
	  <div class="clearBoth"></div>
	  </div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div> 
            </div> 
          </div>  
          
        </div>  
        <!-----------------内容 end----------------->';
	 

	 

		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);



	}



	$query=mysql_query('select * from '.$language.'_news');

	if (mysql_num_rows($query)>0){

	while($row=mysql_fetch_array($query)){

		$site_name=$row['n_title'].' - '.$site_names;

		$site_keyword=$site_keyword2;

		$site_description=$site_description2;

		if ($site_keyword=='') $site_keyword=$row['n_title'].' - '.$site_names;

		if ($site_description=='') $site_description=$row['n_title'].' - '.$site_names;

		if ($row['k_name']!='') $site_name=$row['k_name'];

		if ($row['k_keyWord']!='') $site_keyword=$row['k_keyWord'];

		if ($row['k_description']!='') $site_description=$row['k_description'];

		$class_name=RsField('select n_name from '.$language.'_news_class where n_id='.$row['n_class']);

		$file_name=$file_path.'news-'.$row['n_id'].'.html';

		$content=include('html_header.php');

		$content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
          
          <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143153" name="说明页"> 
                    <div id="FrontSpecifies_show01-143153" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=3').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc22"> 
              <div id="box_ny_mainc2_left"> 
                <div class="columnSpace" id="elem-FrontNewsCategory_tree01-1431652179455" name="资讯分类"> 
                 
<!-- 装饰器样式开始 -->
<div class="border_03">
  <div class="border_03-topr">
    <div class="border_03-topl">
    </div>
  </div>
  <div class="border_03-mid">
      <div class="borderContent"><div id="FrontNewsCategory_tree01-1431652179455" class="FrontNewsCategory_tree01-d2_c1"><div class="comptitle_03"><strong class="titlestyle_03">新闻中心</strong></div><div class="menu-first">
    <ul>';
          
	$html_query=mysql_query('select * from '.$language.'_news_class order by n_order,n_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

	$content.=' <li class="menu-none"><a href="news-c'.$html_row['n_id'].'-p1.html" target="_self" class="menu-text1">'.$html_row['n_name'].'</a></li>';

	}
 

} 
	 
    	$content.='</ul>
  </div>
</div>
	  <div class="clearBoth"></div></div>
  </div>
  <div class="border_03-footerr">
    <div class="border_03-footerl"></div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div>  
              <div id="box_ny_mainc2_right"> 
                <div class="columnSpace" id="elem-FrontNews_detail01-1431653868010" name="资讯详细信息"> 
 
<div id="FrontNews_detail01-1431653868010" class="FrontNews_detail01-d1_c1"><div id="newsdetailshow" >
	<h2>'.$row['n_title'].'</h2>
  <div class="message">
      <span class="date"><em>日期：</em>'.$row['n_date'].'</span>
	</div>           
  <div class="summary">
   </div>
  <div class="describe htmledit" id="infoContent">
  '.$row['n_content'].'
  
</div>  
  <p>
		</p>
     
   
      </div>
  </div> 
 
                </div> 
              </div> 
            </div> 
          </div>  
          
        </div>  
        <!-----------------内容 end----------------->';

		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);

	}

	}



	echo '生成新闻中心成功！';

	break;


case 5:	



$ye="anli";
	$page_size=15;

	$query=mysql_query('select * from '.$language.'_anli_class order by n_order,n_id');

	if (mysql_num_rows($query)==0){

		$file_name=$file_path.'anli.html';

		$content=include('html_header.php');
 

		$content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
          
          <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143153" name="说明页"> 
                    <div id="FrontSpecifies_show01-143153" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=4').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc22"> 
              <div id="box_ny_mainc2_left"> 
                <div class="columnSpace" id="elem-FrontNewsCategory_tree01-1431652179455" name="资讯分类"> 
                  
<!-- 装饰器样式开始 -->
<div class="border_03">
  <div class="border_03-topr">
    <div class="border_03-topl">
    </div>
  </div>
  <div class="border_03-mid">
      <div class="borderContent"><div id="FrontNewsCategory_tree01-1431652179455" class="FrontNewsCategory_tree01-d2_c1"><div class="comptitle_03"><strong class="titlestyle_03">工程案例</strong></div><div class="menu-first">
    <ul>';
     
	$html_query=mysql_query('select * from '.$language.'_anli_class order by n_order,n_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

	$content.=' <li class="menu-none"><a href="anli-c'.$html_row['n_id'].'-p1.html" target="_self" class="menu-text1">'.$html_row['n_name'].'</a></li>';

	}
 

} 
	 
	 
    	 
    	$content.='</ul>
  </div>
</div>
	  <div class="clearBoth"></div></div>
  </div>
  <div class="border_03-footerr">
    <div class="border_03-footerl"></div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div>  
              <div id="box_ny_mainc2_right"> 
                <div class="columnSpace" id="elem-FrontNews_list01-1431652220070" name="资讯列表"> 
                  
<!-- 装饰器样式开始 -->
<div class="border_00">
     <div class="border_00-topr">
    <div class="border_00-topl">
    </div>
  </div>
  <div class="border_00-mid">
      <div class="borderContent"><div id="FrontNews_list01-1431652220070" class="FrontNews_list01-d2_c2"><ul class="comstyle anlilist-01">
 	<li class="content column-num1">没有数据</li>
		<li class="clearBoth"></li>
		 
		<li class="clearBoth"></li>
			</ul>
	<div class="pageJump"><div class="pageJump"><div class="number"></div></div>
</div></div>
	  <div class="clearBoth"></div>
	  </div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div> 
            </div> 
          </div>  
          
        </div>  
        <!-----------------内容 end----------------->  ';

		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);

	}

	else {

		while($row=mysql_fetch_array($query)){

			$page_sql='select n_id,n_class,n_image,n_title,n_date from '.$language.'_anli where n_class='.$row['n_id'].' order by n_date desc,n_id desc';

			$page_count=GetPageCount($page_size,$page_sql);

			for ($i=1;$i<=$page_count;$i++){

				$cid=$row['n_id'];

				$file_name=$file_path.'anli-c'.$row['n_id'].'-p'.$i.'.html';

				$content=include('html_header.php');
 
$content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
          
          <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143153" name="说明页"> 
                    <div id="FrontSpecifies_show01-143153" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=4').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc22"> 
              <div id="box_ny_mainc2_left"> 
                <div class="columnSpace" id="elem-FrontNewsCategory_tree01-1431652179455" name="资讯分类"> 
                  
<!-- 装饰器样式开始 -->
<div class="border_03">
  <div class="border_03-topr">
    <div class="border_03-topl">
    </div>
  </div>
  <div class="border_03-mid">
      <div class="borderContent"><div id="FrontNewsCategory_tree01-1431652179455" class="FrontNewsCategory_tree01-d2_c1"><div class="comptitle_03"><strong class="titlestyle_03">工程案例</strong></div><div class="menu-first">
    <ul>';
     
	$html_query=mysql_query('select * from '.$language.'_anli_class order by n_order,n_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

	$content.=' <li class="menu-none"><a href="anli-c'.$html_row['n_id'].'-p1.html" target="_self" class="menu-text1">'.$html_row['n_name'].'</a></li>';

	}
 

} 
	 
	 
    	 
    	$content.='</ul>
  </div>
</div>
	  <div class="clearBoth"></div></div>
  </div>
  <div class="border_03-footerr">
    <div class="border_03-footerl"></div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div>  
              <div id="box_ny_mainc2_right"> 
                <div class="columnSpace" id="elem-FrontNews_list01-1431652220070" name="资讯列表"> 
                  
<!-- 装饰器样式开始 -->
<div class="border_00">
     <div class="border_00-topr">
    <div class="border_00-topl">
    </div>
  </div>
  <div class="border_00-mid">
  <div class="borderContent"><div id="FrontProducts_list01-1427285011111" class="FrontProducts_list01-d3_c1_01"><div class="comptitle_00"><strong class="titlestyle_00">'.$row['n_name'].'</strong></div>
	 
	 <ul	class="mainul productlist-02">
 	 ';
                   
				   $page=1;

		$page_number=($page-1)*$page_size;

		$page_sql='select n_id,n_class,n_title,n_image,n_date,k_description from '.$language.'_anli where n_class='.$row['n_id'].' order by n_date desc,n_id desc';

		$page_count=GetPageCount($page_size,$page_sql);

		$query2=mysql_query($page_sql." limit $page_number,$page_size");

		if (mysql_num_rows($query2)==0){

			$content.=NoDatas($language);

		}

		else{

 
			while($row2=mysql_fetch_array($query2)){

	$content.='<li class="content column-num5">
					<div class="pic-module">
						<div class="pic">
									<a href="anli-'.$row2['n_id'].'.html" target="_self">
										<img src= "'.$row2['n_image'].'"  /></a>
								</div>
							</div>
					<div class="pro-module">
						 <a href="anli-'.$row2['n_id'].'.html"	target="_self">'.$row2['n_title'].'生</a>
					</div>
				</li>';

			}
		}
		
$content.='</ul>
	<div class="pageJump"><div class="pageJump"><div class="number">'.ShowPages('anli-c'.$row['n_id'].'-p',$page,$page_count,$language).'</div></div></div></div>
	  <div class="clearBoth"></div>
	  </div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div> 
            </div> 
          </div>  
          
        </div>  
        <!-----------------内容 end----------------->';
				$content.=include('html_footer.php');

				$file=fopen($file_name,"w+");

				if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

				fwrite($file,$content);

				fclose($file);

			}

		}

		mysql_data_seek($query,0);

		$row=mysql_fetch_array($query);

		$cid=$row['n_id'];

		$file_name=$file_path.'anli.html';

		$content=include('html_header.php');

		
$content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
          
          <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143153" name="说明页"> 
                    <div id="FrontSpecifies_show01-143153" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=4').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc22"> 
              <div id="box_ny_mainc2_left"> 
                <div class="columnSpace" id="elem-FrontNewsCategory_tree01-1431652179455" name="资讯分类"> 
                  
<!-- 装饰器样式开始 -->
<div class="border_03">
  <div class="border_03-topr">
    <div class="border_03-topl">
    </div>
  </div>
  <div class="border_03-mid">
      <div class="borderContent"><div id="FrontNewsCategory_tree01-1431652179455" class="FrontNewsCategory_tree01-d2_c1"><div class="comptitle_03"><strong class="titlestyle_03">工程案例</strong></div><div class="menu-first">
    <ul>';
     
	$html_query=mysql_query('select * from '.$language.'_anli_class order by n_order,n_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

	$content.=' <li class="menu-none"><a href="anli-c'.$html_row['n_id'].'-p1.html" target="_self" class="menu-text1">'.$html_row['n_name'].'</a></li>';

	}
 

} 
 $content.='</ul>
  </div>
</div>
	  <div class="clearBoth"></div></div>
  </div>
  <div class="border_03-footerr">
    <div class="border_03-footerl"></div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div>  
              <div id="box_ny_mainc2_right"> 
                <div class="columnSpace" id="elem-FrontNews_list01-1431652220070" name="资讯列表"> 
                  
<!-- 装饰器样式开始 -->
<div class="border_00">
     <div class="border_00-topr">
    <div class="border_00-topl">
    </div>
  </div>
  <div class="border_00-mid">
  <div class="borderContent"><div id="FrontProducts_list01-1427285011111" class="FrontProducts_list01-d3_c1_01"><div class="comptitle_00"><strong class="titlestyle_00">'.$row['n_name'].'</strong></div>
	 <ul	class="mainul productlist-02">
 	 ';
                $page=1;

		$page_number=($page-1)*$page_size;

		$page_sql='select n_id,n_class,n_image,n_title,n_date,k_description from '.$language.'_anli where n_class='.$row['n_id'].' order by n_date desc,n_id desc';

		$page_count=GetPageCount($page_size,$page_sql);

		$query2=mysql_query($page_sql." limit $page_number,$page_size");

		if (mysql_num_rows($query2)==0){

			$content.=NoDatas($language);

		}

		else{

 
			while($row2=mysql_fetch_array($query2)){

	$content.='<li class="content column-num5">
					<div class="pic-module">
						<div class="pic">
									<a href="anli-'.$row2['n_id'].'.html" target="_self">
										<img src= "'.$row2['n_image'].'"  /></a>
								</div>
							</div>
					<div class="pro-module">
						 <a href="anli-'.$row2['n_id'].'.html"	target="_self">'.$row2['n_title'].'生</a>
					</div>
				</li>';

			}
		}
		
$content.='
	 
	  
			</ul>
	<div class="pageJump"><div class="pageJump"><div class="number">'.ShowPages('anli-c'.$row['n_id'].'-p',$page,$page_count,$language).'</div></div></div></div>
	  <div class="clearBoth"></div>
	  </div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div> 
            </div> 
          </div>  
          
        </div>  
        <!-----------------内容 end----------------->';
 
		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);

	}

 
	$query=mysql_query('select * from '.$language.'_anli');

	if (mysql_num_rows($query)>0){

	while($row=mysql_fetch_array($query)){

		$site_name=$row['n_title'].' - '.$site_names;

		$site_keyword=$site_keyword2;

		$site_description=$site_description2;

		if ($site_keyword=='') $site_keyword=$row['n_title'].' - '.$site_names;

		if ($site_description=='') $site_description=$row['n_title'].' - '.$site_names;

		if ($row['k_name']!='') $site_name=$row['k_name'];

		if ($row['k_keyWord']!='') $site_keyword=$row['k_keyWord'];

		if ($row['k_description']!='') $site_description=$row['k_description'];

		$class_name=RsField('select n_name from '.$language.'_anli_class where n_id='.$row['n_class']);

		$file_name=$file_path.'anli-'.$row['n_id'].'.html';

		$content=include('html_header.php');

		
$content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
          
          <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143153" name="说明页"> 
                    <div id="FrontSpecifies_show01-143153" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=4').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc22"> 
              <div id="box_ny_mainc2_left"> 
                <div class="columnSpace" id="elem-FrontNewsCategory_tree01-1431652179455" name="资讯分类"> 
                 
<!-- 装饰器样式开始 -->
<div class="border_03">
  <div class="border_03-topr">
    <div class="border_03-topl">
    </div>
  </div>
  <div class="border_03-mid">
      <div class="borderContent"><div id="FrontNewsCategory_tree01-1431652179455" class="FrontNewsCategory_tree01-d2_c1"><div class="comptitle_03"><strong class="titlestyle_03">工程案例</strong></div><div class="menu-first">
    <ul>';
          
	$html_query=mysql_query('select * from '.$language.'_anli_class order by n_order,n_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

	$content.=' <li class="menu-none"><a href="anli-c'.$html_row['n_id'].'-p1.html" target="_self" class="menu-text1">'.$html_row['n_name'].'</a></li>';

	}
 

} 
	 
    	$content.='</ul>
  </div>
</div>
	  <div class="clearBoth"></div></div>
  </div>
  <div class="border_03-footerr">
    <div class="border_03-footerl"></div>
  </div>
</div>
<!-- 装饰器样式结束 --> 
                </div> 
              </div>  
             
			 
			 <div id="box_ny_mainc2_right"> 
                <div class="columnSpace" id="elem-FrontProducts_detail02-1431604567111" name="商品详细信息"> 
                  <script type="text/javascript"
	src="js/FrontProducts.js"></script>
<div id="FrontProducts_detail02-1431604567111" class="FrontProducts_detail02-d1_c1">
<script type="text/javascript" src="js/jquery.metadata.js"></script>
<script type="text/javascript" src="js/FrontProducts.js"></script>
<script type="text/javascript">
	 
	 
	function changeBigImg(thisobj){
		var imgUrl=jQuery(thisobj).attr("src");
		var bigImgUrlObj=jQuery("#FrontProducts_detail02-1431604567111_bigImgUrl");
		jQuery("#FrontProducts_detail02-1431604567111_bigImg").attr("src",imgUrl);
		jQuery("#FrontProducts_detail02-1431604567111_bigImg").attr("jqimg",imgUrl);
		if(bigImgUrlObj.length>0){
			if(bigImgUrlObj.hasClass("bigforImg")){
				bigImgUrlObj.attr("href",imgUrl);
			}
		}
		jQuery(document).ready(function (){
			jQuery("#FrontProducts_detail02-1431604567111 div.picarea div.imgbox ul li img").hover(function(){
				$(this).addClass("currentSmallImg");
			},function(){
				$(this).removeClass("currentSmallImg");
				jQuery(".currentSmallImg").removeAttr("class");
				jQuery(thisobj).attr("class","currentSmallImg");
			})
		})
	}
</script>
<div class="content">
 		<div class="pic-module">
		<div class="pic">
			<a href="javascript:">
			<div id="FrontProducts_detail02-1431604567111_isjqzoom" class="jqzoom">
			<img id="FrontProducts_detail02-1431604567111_bigImg" class="pic-img" src="'.$row['n_image'].'" jqimg="'.$row['n_image'].'"/>
			     	</div>
			</a>
			</div>
			<span class="zoom"></span>
      		<div class="btnarea" style="display:none" >
			</div>
		<div id="FrontProducts_detail02-1431604567111_moreImgdiv" class="show"> 
				 
				<div id="FrontProducts_detail02-1431604567111_key10Picarea" class="picarea">
        		
				<div id="FrontProducts_detail02-1431604567111_key10ScrollDiv" class="imgbox">
					<ul>
					<li id="FrontProducts_detail02-1431604567111_key10imglist" class="mutilimg">';
					
		$html_query2=mysql_query('select * from '.$language.'_anli_image  where n_class='.$row['n_id'].' order by n_order');

if (mysql_num_rows($html_query2)>0){

while($html_row=mysql_fetch_array($html_query2)){

	$content.='<a href="javascript:" style="display: block;"><img onclick="changeBigImg(this)" src="'.$html_row['n_image'].'"></a>';
 
	}
}

					 
					
					$content.='</li></ul>
				</div>
				
				
				</div>
				 
			</div>
			 
		    </div>
		<div class="pro-module">
			<ul class="basic">
				<li class="name1"><span>案例名称：</span>
			      '.$row['n_title'].'</li>
			    </ul>
			<ul class="choose">
				</ul>
			<p class="buttonP">
	            </p>
		</div>
	</div>
	<div class="detail">
		<ul id="FrontProducts_detail02-1431604567111_tabsFlag">
	      <li class="current"><a name="FrontProducts_detail02-1431604567111_description" href="javascript:" title="案例详细">案例详细</a></li>
	      </ul>
		<div id="FrontProducts_detail02-1431604567111_description" class="describe htmledit showtabdiv">
			<div class="FrontProducts_detail02-1431604567111_htmlbreak" id="FrontProducts_detail02-1431604567111_cont_1"
					style="display: block;">
					 '.$row['n_content'].'
</div>
			</div>
		</div>
 
 
</div> 
                </div> 
              </div> 
            </div> 
          </div>  

          
        </div>  
        <!-----------------内容 end-----------------> ';

		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);

	}

	}



	echo '生成工程案例成功！';

	break;
	
case 6:


$ye="download";
	$page_size=10;

	$query=mysql_query('select * from '.$language.'_download_class order by n_order,n_id');

	if (mysql_num_rows($query)==0){

		$file_name=$file_path.'download.html';

		$content=include('html_header.php');
 

$content.='<div id="banner" style="background:url('.Rsfield('select b_image from '.$language.'_banner where b_id=6').') center no-repeat;"></div>
<div id="nymain">
<div id="mianbiaoquan">'.$weizhi.'<a href="index.html">'.$nav_0.'</a> > '.$nav_7.' </div>
<div id="nybox">
<div id="nyleft">
<div id="nymenu">
<div id="nymenu01">'.$nav_7.'</div>
<div id="nymenu02">
<div id="nyvar">';

$html_query=mysql_query('select * from '.$language.'_download_class order by n_order,n_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

	if ($html_row['n_id']==$cid)
	{
			$content.='<a href="download-c'.$html_row['n_id'].'-p1.html" class="snyvara" >'.$html_row['n_name'].'</a>';

		}
	else
	{
			$content.='<a href="download-c'.$html_row['n_id'].'-p1.html" class="nyvara" >'.$html_row['n_name'].'</a>';

		}

	}
 

}

		$content.='<div id="clear"></div>
</div>
<div id="clear"></div>
</div>
<div id="nymenu03"></div>
<div id="clear"></div>
</div>
<div id="clear"></div>
</div>
<div id="nyright">
<div id="nyright_t">'.$row['n_name'].'</div>
<div id="nyright_n" style="padding:10px;">
 <div id="nynews">
<ul>
</ul>
<div id="clear"></div>
</div>
<div id="page" style="text-align:center;padding-top:30px; ">
<div id="clear"></div>
</div>

 </div>
<div id="clear"></div>
</div>
<div id="clear"></div>
</div>
<div id="clear"></div>
</div>
';

		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);

	}

	else {

		while($row=mysql_fetch_array($query)){

			$page_sql='select n_id,n_class,n_title,n_date from '.$language.'_download where n_class='.$row['n_id'].' order by n_date desc,n_id desc';

			$page_count=GetPageCount($page_size,$page_sql);

			for ($i=1;$i<=$page_count;$i++){

				$cid=$row['n_id'];

				$file_name=$file_path.'download-c'.$row['n_id'].'-p'.$i.'.html';

				$content=include('html_header.php');
 

$content.='<div id="banner" style="background:url('.Rsfield('select b_image from '.$language.'_banner where b_id=6').') center no-repeat;"></div>
<div id="nymain">
<div id="mianbiaoquan">'.$weizhi.'<a href="index.html">'.$nav_0.'</a> > '.$nav_7.' </div>
<div id="nybox">
<div id="nyleft">
<div id="nymenu">
<div id="nymenu01">'.$nav_7.'</div>
<div id="nymenu02">
<div id="nyvar">';

$html_query=mysql_query('select * from '.$language.'_download_class order by n_order,n_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

	if ($html_row['n_id']==$cid)
	{
			$content.='<a href="download-c'.$html_row['n_id'].'-p1.html" class="snyvara" >'.$html_row['n_name'].'</a>';

		}
	else
	{
			$content.='<a href="download-c'.$html_row['n_id'].'-p1.html" class="nyvara" >'.$html_row['n_name'].'</a>';

		}

	}
 

}

		$content.='<div id="clear"></div>
</div>
<div id="clear"></div>
</div>
<div id="nymenu03"></div>
<div id="clear"></div>
</div>
<div id="clear"></div>
</div>
<div id="nyright">
<div id="nyright_t">'.$row['n_name'].'</div>
<div id="nyright_n" style="padding:10px;">
 <div id="nynews">
<ul>';
                   
				   $page=1;

		$page_number=($page-1)*$page_size;

		$page_sql='select n_id,n_class,n_title,n_date,n_url from '.$language.'_download where n_class='.$row['n_id'].' order by n_date desc,n_id desc';

		$page_count=GetPageCount($page_size,$page_sql);

		$query2=mysql_query($page_sql." limit $page_number,$page_size");

		if (mysql_num_rows($query2)==0){

			$content.=NoDatas($language);

		}

		else{

 
			while($row2=mysql_fetch_array($query2)){

	$content.='<li><span style="float:right; font-size:12px; color:#999;"><a target="_blank" href="'.$row2[''].'">'.$xiazai.'</a></span><a target="_blank" href="'.$row2[''].'">'.$row2['n_title'].'</a></li>';

			}
		}
		
$content.='</ul>
<div id="clear"></div>
</div>
<div id="page" style="text-align:center;padding-top:30px; ">'.ShowPages('download-c'.$row['n_id'].'-p',$page,$page_count,$language).'<div id="clear"></div>
</div>

 </div>
<div id="clear"></div>
</div>
<div id="clear"></div>
</div>
<div id="clear"></div>
</div>
';
				$content.=include('html_footer.php');

				$file=fopen($file_name,"w+");

				if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

				fwrite($file,$content);

				fclose($file);

			}

		}

		mysql_data_seek($query,0);

		$row=mysql_fetch_array($query);

		$cid=$row['n_id'];

		$file_name=$file_path.'download.html';

		$content=include('html_header.php');

		
$content.='<div id="banner" style="background:url('.Rsfield('select b_image from '.$language.'_banner where b_id=6').') center no-repeat;"></div>
<div id="nymain">
<div id="mianbiaoquan">'.$weizhi.'<a href="index.html">'.$nav_0.'</a> > '.$nav_7.' </div>
<div id="nybox">
<div id="nyleft">
<div id="nymenu">
<div id="nymenu01">'.$nav_7.'</div>
<div id="nymenu02">
<div id="nyvar">';

$html_query=mysql_query('select * from '.$language.'_download_class order by n_order,n_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

	if ($html_row['n_id']==$cid)
	{
			$content.='<a href="download-c'.$html_row['n_id'].'-p1.html" class="snyvara" >'.$html_row['n_name'].'</a>';

		}
	else
	{
			$content.='<a href="download-c'.$html_row['n_id'].'-p1.html" class="nyvara" >'.$html_row['n_name'].'</a>';

		}

	}
 

}

		$content.='<div id="clear"></div>
</div>
<div id="clear"></div>
</div>
<div id="nymenu03"></div>
<div id="clear"></div>
</div>
<div id="clear"></div>
</div>
<div id="nyright">
<div id="nyright_t">'.$row['n_name'].'</div>
<div id="nyright_n" style="padding:10px;">
 <div id="nynews">
<ul>';
                   
				   $page=1;

		$page_number=($page-1)*$page_size;

		$page_sql='select n_id,n_class,n_title,n_date,n_url from '.$language.'_download where n_class='.$row['n_id'].' order by n_date desc,n_id desc';

		$page_count=GetPageCount($page_size,$page_sql);

		$query2=mysql_query($page_sql." limit $page_number,$page_size");

		if (mysql_num_rows($query2)==0){

			$content.=NoDatas($language);

		}

		else{

 
			while($row2=mysql_fetch_array($query2)){

	$content.='<li><span style="float:right; font-size:12px; color:#999;"><a href="'.$row2['n_url'].'" target="_blank">'.$xiazai.'</a></span><a target="_blank" href="'.$row2['n_url'].'">'.$row2['n_title'].'</a></li>';

			}
		}
		
$content.='</ul>
<div id="clear"></div>
</div>
<div id="page" style="text-align:center;padding-top:30px; ">'.ShowPages('download-c'.$row['n_id'].'-p',$page,$page_count,$language).'<div id="clear"></div>
</div>

 </div>
<div id="clear"></div>
</div>
<div id="clear"></div>
</div>
<div id="clear"></div>
</div>
';
 
		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);



	}

 
 
 
	echo '生成下载中心成功！';

	break;


case 7:
$ye="contact";
	$file_name=$file_path.'contact.html';

	$content=include('html_header.php');
 
$content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
         
          <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-1431597869740" name="说明页"> 
                    <div id="FrontSpecifies_show01-1431597869740" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=6').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            
            <div id="box_ny_mainc2_c"> 
              <div class="columnSpace" id="elem-FrontComContent_detail01-14272476902222" name="通用内容详细信息"> 
                <div id="FrontComContent_detail01-14272476902222" class="FrontComContent_detail01-d1_c1">
				<div class="title" style="background:url(images/bt.jpg) bottom no-repeat">
   	<h3>联系我们</h3>
	</div>
  <div class="content">
  	<div class="describe htmledit">
  		<div class="FrontComContent_detail01-14272476902222_htmlbreak" id="FrontComContent_detail01-14272476902222_cont_1" style="display: block;"> 
				'.RsField('select a_content from '.$language.'_about where a_id=1').'				
	</div>
		</div>
  </div>
  </div> 
              </div> 
            </div> 
          </div>  
        
        </div>  
        <!-----------------内容 end----------------->  ';

	$content.=include('html_footer.php');

	$file=fopen($file_name,"w+");

	if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

	fwrite($file,$content);

	fclose($file);



	echo '生成联系我们成功！';

	break;
	
	
case 8:



	$query=mysql_query('select * from '.$language.'_job order by a_order,a_id');

	if (mysql_num_rows($query)==0){

		$file_name=$file_path.'job.html';

		$content=include('html_header.php');	
 
		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);

	}

	else{
		$ye="job";
 		while($row=mysql_fetch_array($query)){

 			$cid=$row['a_id'];
			 
			$file_name=$file_path.'job-'.$row['a_id'].'.html';
			 
 
			$content=include('html_header.php');	

 $content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
           <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143152" name="说明页"> 
                    <div id="FrontSpecifies_show01-143152" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=7').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc2_top"> 
              <div class="columnSpace" id="elem-FrontComContent_list01-142724711111" name="通用内容列表"> 
                <div id="FrontComContent_list01-142724711111" class="FrontComContent_list01-d1_c1"><div class="menu-first">
			 
						<ul class="list2">';
							
							
$html_query=mysql_query('select * from '.$language.'_job order by a_order,a_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){
	if($html_row['a_id']==$cid)
	{
		 $content.='<li class="menu-none"><a href="job-'.$html_row['a_id'].'.html" class="menu-text1 current" >'.$html_row['a_name'].'</a></li>';

		}
	else
	{
  $content.='<li class="menu-none"><a href="job-'.$html_row['a_id'].'.html" class="menu-text1" >'.$html_row['a_name'].'</a></li>';
	}
	}
}
	 
 $content.='</ul>
						
						</div>
	</div> 
              </div> 
            </div>  
            <div id="box_ny_mainc2_c"> 
              <div class="columnSpace" id="elem-FrontComContent_detail01-1427247690111" name="通用内容详细信息"> 
                <div id="FrontComContent_detail01-1427247690111" class="FrontComContent_detail01-d1_c1"><div class="title">
   	<h3>'.$row['a_name'].'</h3>
	</div>
  <div class="content">
  	<div class="describe htmledit">
  		<div class="FrontComContent_detail01-1427247690111_htmlbreak" id="FrontComContent_detail01-1427247690111_cont_1"
				style="display: block;">
				'.$row['a_content'].'
				</div>
		</div>
  </div>
  </div> 
              </div> 
            </div> 
          </div>  
          
        </div>  
        <!-----------------内容 end----------------->';

			$content.=include('html_footer.php');

			$file=fopen($file_name,"w+");

			if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

			fwrite($file,$content);

			fclose($file);
			 

		}

			 
	mysql_data_seek($query,0);

		$row=mysql_fetch_array($query);

		$site_name=$site_name;

		$site_keyword=$site_keyword;

		$site_description=$site_description;

		if ($site_name=='') $site_name=$row['a_name'];

		if ($site_keyword=='') $site_keyword=$row['a_name'];

		if ($site_description=='') $site_description=$row['a_name'];

		if ($row['k_name']!='') $site_name=$row['k_name'];

		if ($row['k_keyWord']!='') $site_keyword=$row['k_keyWord'];

		if ($row['k_description']!='') $site_description=$row['k_description'];

 
		$cid=$row['a_id'];

		$file_name=$file_path.'job.html';

		$content=include('html_header.php');
 
$content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
           <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143152" name="说明页"> 
                    <div id="FrontSpecifies_show01-143152" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=7').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc2_top"> 
              <div class="columnSpace" id="elem-FrontComContent_list01-142724711111" name="通用内容列表"> 
                <div id="FrontComContent_list01-142724711111" class="FrontComContent_list01-d1_c1"><div class="menu-first">
			 
						<ul class="list2">';
							
							
$html_query=mysql_query('select * from '.$language.'_job order by a_order,a_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

if($html_row['a_id']==$cid)
	{
		 $content.='<li class="menu-none"><a href="job-'.$html_row['a_id'].'.html" class="menu-text1 current" >'.$html_row['a_name'].'</a></li>';

		}
	else
	{
  $content.='<li class="menu-none"><a href="job-'.$html_row['a_id'].'.html" class="menu-text1" >'.$html_row['a_name'].'</a></li>';
	}
	 
	}
}
	 
 $content.='</ul>
						</div>
	</div> 
              </div> 
            </div>  
            <div id="box_ny_mainc2_c"> 
              <div class="columnSpace" id="elem-FrontComContent_detail01-1427247690111" name="通用内容详细信息"> 
                <div id="FrontComContent_detail01-1427247690111" class="FrontComContent_detail01-d1_c1"><div class="title">
   	<h3>'.$row['a_name'].'</h3>
	</div>
  <div class="content">
  	<div class="describe htmledit">
  		<div class="FrontComContent_detail01-1427247690111_htmlbreak" id="FrontComContent_detail01-1427247690111_cont_1"
				style="display: block;">
				'.$row['a_content'].'
				</div>
		</div>
  </div>
  </div> 
              </div> 
            </div> 
          </div>  
          
        </div>  
        <!-----------------内容 end----------------->';

		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);
	}

	

	echo '生成人才招聘成功！';

	break;


case 9:


	$query=mysql_query('select * from '.$language.'_join order by a_order,a_id');

	if (mysql_num_rows($query)==0){

		$file_name=$file_path.'join.html';

		$content=include('html_header.php');	
 
		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);

	}

	else{
		$ye="join";
 		while($row=mysql_fetch_array($query)){

 			$cid=$row['a_id'];
			 
			$file_name=$file_path.'join-'.$row['a_id'].'.html';
			 
 
			$content=include('html_header.php');	

 $content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
           <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143152" name="说明页"> 
                    <div id="FrontSpecifies_show01-143152" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=8').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc2_top"> 
              <div class="columnSpace" id="elem-FrontComContent_list01-142724711111" name="通用内容列表"> 
                <div id="FrontComContent_list01-142724711111" class="FrontComContent_list01-d1_c1"><div class="menu-first">
			 
						<ul class="list2">';
							
							
$html_query=mysql_query('select * from '.$language.'_join order by a_order,a_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){
	if($html_row['a_id']==$cid)
	{
		 $content.='<li class="menu-none"><a href="join-'.$html_row['a_id'].'.html" class="menu-text1 current" >'.$html_row['a_name'].'</a></li>';

		}
	else
	{
  $content.='<li class="menu-none"><a href="join-'.$html_row['a_id'].'.html" class="menu-text1" >'.$html_row['a_name'].'</a></li>';
	}
	}
}
	 
 $content.='</ul>
						
						</div>
	</div> 
              </div> 
            </div>  
            <div id="box_ny_mainc2_c"> 
              <div class="columnSpace" id="elem-FrontComContent_detail01-1427247690111" name="通用内容详细信息"> 
                <div id="FrontComContent_detail01-1427247690111" class="FrontComContent_detail01-d1_c1"><div class="title">
   	<h3>'.$row['a_name'].'</h3>
	</div>
  <div class="content">
  	<div class="describe htmledit">
  		<div class="FrontComContent_detail01-1427247690111_htmlbreak" id="FrontComContent_detail01-1427247690111_cont_1"
				style="display: block;">
				'.$row['a_content'].'
				</div>
		</div>
  </div>
  </div> 
              </div> 
            </div> 
          </div>  
          
        </div>  
        <!-----------------内容 end----------------->';

			$content.=include('html_footer.php');

			$file=fopen($file_name,"w+");

			if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

			fwrite($file,$content);

			fclose($file);
			 

		}

			 
	mysql_data_seek($query,0);

		$row=mysql_fetch_array($query);

		$site_name=$site_name;

		$site_keyword=$site_keyword;

		$site_description=$site_description;

		if ($site_name=='') $site_name=$row['a_name'];

		if ($site_keyword=='') $site_keyword=$row['a_name'];

		if ($site_description=='') $site_description=$row['a_name'];

		if ($row['k_name']!='') $site_name=$row['k_name'];

		if ($row['k_keyWord']!='') $site_keyword=$row['k_keyWord'];

		if ($row['k_description']!='') $site_description=$row['k_description'];

 
		$cid=$row['a_id'];

		$file_name=$file_path.'join.html';

		$content=include('html_header.php');
 
$content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
           <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-143152" name="说明页"> 
                    <div id="FrontSpecifies_show01-143152" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=8').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
          <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc2_top"> 
              <div class="columnSpace" id="elem-FrontComContent_list01-142724711111" name="通用内容列表"> 
                <div id="FrontComContent_list01-142724711111" class="FrontComContent_list01-d1_c1"><div class="menu-first">
			 
						<ul class="list2">';
							
							
$html_query=mysql_query('select * from '.$language.'_join order by a_order,a_id');

if (mysql_num_rows($html_query)>0){

while($html_row=mysql_fetch_array($html_query)){

if($html_row['a_id']==$cid)
	{
		 $content.='<li class="menu-none"><a href="join-'.$html_row['a_id'].'.html" class="menu-text1 current" >'.$html_row['a_name'].'</a></li>';

		}
	else
	{
  $content.='<li class="menu-none"><a href="join-'.$html_row['a_id'].'.html" class="menu-text1" >'.$html_row['a_name'].'</a></li>';
	}
	 
	}
}
	 
 $content.='</ul>
						</div>
	</div> 
              </div> 
            </div>  
            <div id="box_ny_mainc2_c"> 
              <div class="columnSpace" id="elem-FrontComContent_detail01-1427247690111" name="通用内容详细信息"> 
                <div id="FrontComContent_detail01-1427247690111" class="FrontComContent_detail01-d1_c1"><div class="title">
   	<h3>'.$row['a_name'].'</h3>
	</div>
  <div class="content">
  	<div class="describe htmledit">
  		<div class="FrontComContent_detail01-1427247690111_htmlbreak" id="FrontComContent_detail01-1427247690111_cont_1"
				style="display: block;">
				'.$row['a_content'].'
				</div>
		</div>
  </div>
  </div> 
              </div> 
            </div> 
          </div>  
          
        </div>  
        <!-----------------内容 end----------------->';

		$content.=include('html_footer.php');

		$file=fopen($file_name,"w+");

		if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

		fwrite($file,$content);

		fclose($file);
	}

	

	echo '生成招商加盟成功！';

	break;
	
case 10:

for ($i = 2; $i <= 6; $i++) {
switch($i)
	
	{
		case 2:
		$title="解决方案";
		break;
		
				case 3:
		$title="研发中心";
		break;
		
				case 4:
		$title="公司实景";
		break;
		
				case 5:
		$title="荣誉资质";
		break;
				case 6:
		$title="客户服务";
		break;
		
		} 
	

	$file_name=$file_path.'tech'.$i.'.html';

	$content=include('html_header.php');
 
$content.='<!---------------内容 star------------------->  
        <div id="box_ny_mainc"> 
         
          <div id="box_ny_mainc1"> 
            <div id="out"> 
              <div id="mid"> 
                <div id="in"> 
                  <div class="columnSpace" id="elem-FrontSpecifies_show01-1431597869740" name="说明页"> 
                    <div id="FrontSpecifies_show01-1431597869740" class="FrontSpecifies_show01-d3_c1"><div class="describe htmledit">
       <p>
	<img alt="" src="'.Rsfield('select b_image from '.$language.'_banner where b_id=1').'" style="width: 1920px; height: 422px;" /></p></div>
</div> 
                  </div> 
                </div> 
              </div> 
            </div> 
          </div>  
		  
		   <div id="box_ny_mainc2"> 
            <div id="box_ny_mainc2_top"> 
              <div class="columnSpace" id="elem-FrontComContent_list01-142724711111" name="通用内容列表"> 
                <div id="FrontComContent_list01-142724711111" class="FrontComContent_list01-d1_c1"><div class="menu-first">
			 
						<ul class="list2">';
					if($i==2)
					{		
		 $content.='<li class="menu-none"><a href="tech2.html" class="menu-text1 current" >解决方案</a></li>';
					}
					else
					{
					 $content.='<li class="menu-none"><a href="tech2.html" class="menu-text1 " >解决方案</a></li>';

						}
						
						if($i==3)
					{		
		 $content.='<li class="menu-none"><a href="tech3.html" class="menu-text1 current" >研发中心</a></li>';
					}
					else
					{
					 $content.='<li class="menu-none"><a href="tech3.html" class="menu-text1 " >研发中心</a></li>';

						}
						
						if($i==4)
					{		
		 $content.='<li class="menu-none"><a href="tech4.html" class="menu-text1 current" >公司实景</a></li>';
					}
					else
					{
					 $content.='<li class="menu-none"><a href="tech4.html" class="menu-text1 " >公司实景</a></li>';

						}
						
						if($i==5)
					{		
		 $content.='<li class="menu-none"><a href="tech5.html" class="menu-text1 current" >荣誉资质</a></li>';
					}
					else
					{
					 $content.='<li class="menu-none"><a href="tech5.html" class="menu-text1 " >荣誉资质</a></li>';

						}
						if($i==66)
					{		
		 $content.='<li class="menu-none"><a href="tech6.html" class="menu-text1 current" >客户服务</a></li>';
					}
					else
					{
					 $content.='<li class="menu-none"><a href="tech6.html" class="menu-text1 " >客户服务</a></li>';

						}
 
 $content.='</ul>
						</div>
	</div> 
              </div> 
            </div>  
			
          <div id="box_ny_mainc2"> 
            
            <div id="box_ny_mainc2_c"> 
              <div class="columnSpace" id="elem-FrontComContent_detail01-14272476902222" name="通用内容详细信息"> 
                <div id="FrontComContent_detail01-14272476902222" class="FrontComContent_detail01-d1_c1">
				<div class="title" style="background:url(images/bt.jpg) bottom no-repeat">
   	<h3>'.$title.'</h3>
	</div>
  <div class="content">
  	<div class="describe htmledit">
  		<div class="FrontComContent_detail01-14272476902222_htmlbreak" id="FrontComContent_detail01-14272476902222_cont_1" style="display: block;"> 
				'.RsField('select a_content from '.$language.'_about where a_id='.$i.'').'				
	</div>
		</div>
  </div>
  </div> 
              </div> 
            </div> 
          </div>  
        
        </div>  
        <!-----------------内容 end----------------->  ';

	$content.=include('html_footer.php');

	$file=fopen($file_name,"w+");

	if (!is_writable($file_name)) die('生成文件失败：'.$file_name.' 不可写入！');

	fwrite($file,$content);

	fclose($file);


}

	echo '生成其他页面成功！';


	break;
	
	 
}



function ShowPages($page_filename,$page,$page_count){

		$pagestr_1='首页';

		$pagestr_2='上一页';

		$pagestr_3='下一页';

		$pagestr_4='尾页';

		$pagestr_5='跳转';

		$pagestr_6='请输入页码！';


	$str='<div class="fypage_blk">';

	if ($page_count==1){

		$str.='<div class="fypage"><span class="fypage_disabled">'.$pagestr_1.'</span><span class="fypage_disabled">'.$pagestr_2.'</span><span class="fypage_current">1</span><span class="fypage_disabled">'.$pagestr_3.'</span><span class="fypage_disabled">'.$pagestr_4.'</span></div>';

	}

	else{

		$str.='<div class="fypage">';

		$str.='<a href="'.$page_filename.'1.html" class="fypage_str">'.$pagestr_1.'</a>';

		if ($page<=1){

			$str.='<a href="'.$page_filename.'1.html" class="fypage_str">'.$pagestr_2.'</a>';

		}

		else{

			$str.='<a href="'.$page_filename.($page-1).'.html" class="fypage_str">'.$pagestr_2.'</a>';

		}

		if ($page_count<=15){

			for($i=1;$i<=$page_count;$i++){

				if ($page==$i){

					$str.='<a class="fypage_current">'.$i.'</a>';

				}

				else{

					$str.='<a href="'.$page_filename.$i.'.html">'.$i.'</a>';

				}

			}

		}

		else{

			if ($page_count-$page<=11){

				for($i=$page_count-12;$i<=$page_count;$i++){

					if ($page==$i){

						$str.='<a class="fypage_current">'.$i.'</a>';

					}

					else{

						$str.='<a href="'.$page_filename.$i.'.html">'.$i.'</a>';

					}

				}

			}

			else{

				if ($page<10){

					for($i=1;$i<=10;$i++){

						if ($i==$page){

							$str.='<a class="fypage_current">'.$i.'</a>';

						}

						else{

							$str.='<a href="'.$page_filename.$i.'.html">'.$i.'</a>';

						}

					}

				}

				if ($page % 10==0){

					for($i=$page-1;$i<=($page/10+1)*10;$i++){

						if ($i==$page_count-2) break;

						if ($i==$page){

							$str.='<a class="fypage_current">'.$i.'</a>';

						}

						else{

							$str.='<a href="'.$page_filename.$i.'.html">'.$i.'</a>';

						}

					}

				}

				if ($page>10 && $page<$page_count-2){

					$fpage=intval($page_count/10);

					for($i=1;$i<=$fpage;$i++){

						if ($page>$i*10 && $page<($i+1)*10){

							for($i2=$i*10-1;$i2<=($i+1)*10;$i2++){

								if ($page==$i2){

									$str.='<span class="fypage_current">'.$i2.'</span>';

								}

								else{

									$str.='<a href="'.$page_filename.$i2.'.html">'.$i2.'</a>';

								}

							}

							break;

						}

					}

				}

				$str.='<strong class="fypage_sl">...</strong>';

				if ($page==$page_count){

					$str.='<span class="fypage_current">'.$page_count.'</span>';

				}

				else{

					$str.='<a href="'.$page_filename.$page_count.'.html">'.$page_count.'</a>';

				}

			}

		}

		if ($page==$page_count){

			$str.='<a href="'.$page_filename.$page_count.'.html" class="fypage_str">'.$pagestr_3.'</a>';

		}


		else{

			$str.='<a href="'.$page_filename.($page+1).'.html" class="fypage_str">'.$pagestr_3.'</a>';

		}

		$str.='<a href="'.$page_filename.$page_count.'.html" class="fypage_str">'.$pagestr_4.'</a>';

 
		$str.='</div>';

	}

	$str.='</div>';

	

	return $str;

}

?>